// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from '@/router/routes';
import store from '@/store';
import Element from 'element-ui'
import echarts from 'echarts';
import $ from 'jquery';
import directives from './directives/index'

Vue.prototype.$echarts = echarts
Vue.use(Element)
import 'element-ui/lib/theme-chalk/index.css';

import '@/assets/js/reset-css';
Vue.config.productionTip = false

// 注册自定义指令
Object.keys(directives).forEach(k => Vue.directive(k, directives[k]))

/* eslint-disable no-new */
new Vue({
    router,
    store
}).$mount('#bgy-app');